#include <string.h>
#include <stdio.h>
int main(int argc, char const * argv[])
{
    char str[128]="wangqi";
    char sar[128]=" ";
    int i = 0;
    while (i < strlen(str))
    {
        i++;
    }
    int j = 0;
    while (i>0)
    {
        i-- , j++;
        sar[j] = str[i];
    }
    printf("数组str的逆序为: %s\n", sar);
    return 0;
}